package com.comdo.newup_loan.module.limit;

import com.comdo.newup_loan.base.BaseRxPresenter;
import com.comdo.newup_loan.base.BaseView;
import com.comdo.newup_loan.model.CarByCodeBean;
import com.comdo.newup_loan.model.CarCityItemBean;
import com.comdo.newup_loan.model.CarConfigsBean;

import java.util.List;

/**
 * Created by liyuan on 2017/11/7.
 */

public interface CarLimitContact {
    interface View extends BaseView {

        void getConfigFail(String failMessage);
        /**
         * 获取配置信息
         */
        void getConfigtList(CarConfigsBean datas);
        /**
         * 获取城市列表
         */
        void getCityList(List<CarCityItemBean> citys);

        /**
         * 根据车架号获取品牌
         */
        void getByCarCode(CarByCodeBean carByCodeBean);

        /**
         * 估价
         */
        void assess(Double amount);


    }

    abstract class Presenter extends BaseRxPresenter<View> {

        public abstract void getConfigtList();

        public abstract void getCityList(int provinceId);

        public abstract void getByCarCode(String CarCode);

        public abstract void assess(int modelId,String regDate,Double mile,int cityId,String color);

    }
}
